.class public Lcom/brixd/niceapp/activity/NiceAppSearchActivity;
.super Lcom/brixd/niceapp/activity/AbsBaseSwipeBackActivity;
.source "NiceAppSearchActivity.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;
    }
.end annotation


# static fields
.field public static final DYNAMIC_BACKGROUND:Ljava/lang/String; = "dynamic_background"

.field private static TOTAL_APPS_DISPLAY:I


# instance fields
.field private mAdapter:Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;

.field private mBackBtn:Landroid/widget/ImageButton;

.field private mClearEditBtn:Landroid/widget/ImageButton;

.field private mCurrentBgColor:I

.field private mExpandableAppListView:Landroid/widget/ExpandableListView;

.field private mProgressHUD:Lcom/zuiapps/suite/utils/hud/ProgressHUD;

.field private mSearchBtn:Landroid/widget/ImageButton;

.field private mSearchEdt:Landroid/widget/EditText;

.field private mTagRecyclerView:Lcom/zuimeia/ui/tag/enhance/TagRecyclerView;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .prologue
    .line 61
    const/4 v0, 0x5

    sput v0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->TOTAL_APPS_DISPLAY:I

    return-void
.end method

.method public constructor <init>()V
    .registers 1

    .prologue
    .line 59
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AbsBaseSwipeBackActivity;-><init>()V

    .line 306
    return-void
.end method

.method static synthetic access$000(Lcom/brixd/niceapp/activity/NiceAppSearchActivity;)Landroid/widget/ImageButton;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/NiceAppSearchActivity;

    .prologue
    .line 59
    iget-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mClearEditBtn:Landroid/widget/ImageButton;

    return-object v0
.end method

.method static synthetic access$100(Lcom/brixd/niceapp/activity/NiceAppSearchActivity;)Landroid/widget/ImageButton;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/NiceAppSearchActivity;

    .prologue
    .line 59
    iget-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mSearchBtn:Landroid/widget/ImageButton;

    return-object v0
.end method

.method static synthetic access$200(Lcom/brixd/niceapp/activity/NiceAppSearchActivity;)Landroid/widget/EditText;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/NiceAppSearchActivity;

    .prologue
    .line 59
    iget-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mSearchEdt:Landroid/widget/EditText;

    return-object v0
.end method

.method static synthetic access$300(Lcom/brixd/niceapp/activity/NiceAppSearchActivity;)V
    .registers 1
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/NiceAppSearchActivity;

    .prologue
    .line 59
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->searchApps()V

    return-void
.end method

.method static synthetic access$400(Lcom/brixd/niceapp/activity/NiceAppSearchActivity;Ljava/util/List;)V
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/NiceAppSearchActivity;
    .param p1, "x1"    # Ljava/util/List;

    .prologue
    .line 59
    invoke-direct {p0, p1}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->initTagView(Ljava/util/List;)V

    return-void
.end method

.method static synthetic access$500(Lcom/brixd/niceapp/activity/NiceAppSearchActivity;)Lcom/zuiapps/suite/utils/hud/ProgressHUD;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/NiceAppSearchActivity;

    .prologue
    .line 59
    iget-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mProgressHUD:Lcom/zuiapps/suite/utils/hud/ProgressHUD;

    return-object v0
.end method

.method static synthetic access$600(Lcom/brixd/niceapp/activity/NiceAppSearchActivity;)Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/NiceAppSearchActivity;

    .prologue
    .line 59
    iget-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mAdapter:Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;

    return-object v0
.end method

.method static synthetic access$700(Lcom/brixd/niceapp/activity/NiceAppSearchActivity;)V
    .registers 1
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/NiceAppSearchActivity;

    .prologue
    .line 59
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->expandAllGroup()V

    return-void
.end method

.method static synthetic access$800()I
    .registers 1

    .prologue
    .line 59
    sget v0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->TOTAL_APPS_DISPLAY:I

    return v0
.end method

.method private expandAllGroup()V
    .registers 3

    .prologue
    .line 291
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mAdapter:Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;

    if-nez v1, :cond_5

    .line 297
    :cond_4
    return-void

    .line 294
    :cond_5
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_6
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mAdapter:Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;

    invoke-virtual {v1}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;->getGroupCount()I

    move-result v1

    if-ge v0, v1, :cond_4

    .line 295
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mExpandableAppListView:Landroid/widget/ExpandableListView;

    invoke-virtual {v1, v0}, Landroid/widget/ExpandableListView;->expandGroup(I)Z

    .line 294
    add-int/lit8 v0, v0, 0x1

    goto :goto_6
.end method

.method private initData()V
    .registers 7

    .prologue
    const v5, 0x7f08002a

    .line 103
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    .line 104
    .local v0, "intent":Landroid/content/Intent;
    if-nez v0, :cond_14

    .line 105
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v2, v5}, Landroid/content/res/Resources;->getColor(I)I

    move-result v2

    iput v2, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mCurrentBgColor:I

    .line 114
    :goto_13
    return-void

    .line 107
    :cond_14
    const-string v2, "dynamic_background"

    const/4 v3, 0x0

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v1

    .line 108
    .local v1, "isDynamicBackground":Z
    if-eqz v1, :cond_36

    .line 109
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->getActivity()Landroid/app/Activity;

    move-result-object v2

    invoke-static {v2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v2

    const-string v3, "CurrentBgColor"

    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getColor(I)I

    move-result v4

    invoke-virtual {v2, v3, v4}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;I)I

    move-result v2

    iput v2, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mCurrentBgColor:I

    goto :goto_13

    .line 111
    :cond_36
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v2, v5}, Landroid/content/res/Resources;->getColor(I)I

    move-result v2

    iput v2, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mCurrentBgColor:I

    goto :goto_13
.end method

.method private initTagView(Ljava/util/List;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lcom/brixd/niceapp/model/TagModel;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 203
    .local p1, "tagModels":Ljava/util/List;, "Ljava/util/List<Lcom/brixd/niceapp/model/TagModel;>;"
    iget-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mTagRecyclerView:Lcom/zuimeia/ui/tag/enhance/TagRecyclerView;

    invoke-static {p1}, Lcom/brixd/niceapp/service/AppService;->convertToEnhanceTagModels(Ljava/util/List;)Ljava/util/List;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/zuimeia/ui/tag/enhance/TagRecyclerView;->populateData(Ljava/util/List;)V

    .line 204
    iget-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mTagRecyclerView:Lcom/zuimeia/ui/tag/enhance/TagRecyclerView;

    new-instance v1, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$6;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$6;-><init>(Lcom/brixd/niceapp/activity/NiceAppSearchActivity;)V

    invoke-virtual {v0, v1}, Lcom/zuimeia/ui/tag/enhance/TagRecyclerView;->setOnTagChangeListener(Lcom/zuimeia/ui/tag/enhance/TagRecyclerView$OnTagChangeListener;)V

    .line 222
    return-void
.end method

.method private initWidgetActions()V
    .registers 3

    .prologue
    .line 143
    iget-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mSearchEdt:Landroid/widget/EditText;

    new-instance v1, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$1;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$1;-><init>(Lcom/brixd/niceapp/activity/NiceAppSearchActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 164
    iget-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mSearchEdt:Landroid/widget/EditText;

    new-instance v1, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$2;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$2;-><init>(Lcom/brixd/niceapp/activity/NiceAppSearchActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setOnEditorActionListener(Landroid/widget/TextView$OnEditorActionListener;)V

    .line 177
    iget-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mClearEditBtn:Landroid/widget/ImageButton;

    new-instance v1, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$3;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$3;-><init>(Lcom/brixd/niceapp/activity/NiceAppSearchActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 184
    iget-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mBackBtn:Landroid/widget/ImageButton;

    new-instance v1, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$4;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$4;-><init>(Lcom/brixd/niceapp/activity/NiceAppSearchActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 191
    iget-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mSearchBtn:Landroid/widget/ImageButton;

    new-instance v1, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$5;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$5;-><init>(Lcom/brixd/niceapp/activity/NiceAppSearchActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 197
    return-void
.end method

.method private initWidgets()V
    .registers 6

    .prologue
    const/4 v4, 0x0

    .line 117
    const v2, 0x7f0a008e

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    iget v3, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mCurrentBgColor:I

    invoke-virtual {v2, v3}, Landroid/view/View;->setBackgroundColor(I)V

    .line 119
    const v2, 0x7f0a008f

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/EditText;

    iput-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mSearchEdt:Landroid/widget/EditText;

    .line 120
    const v2, 0x7f0a0091

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageButton;

    iput-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mClearEditBtn:Landroid/widget/ImageButton;

    .line 121
    const v2, 0x7f0a0090

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageButton;

    iput-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mSearchBtn:Landroid/widget/ImageButton;

    .line 122
    const v2, 0x7f0a002d

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageButton;

    iput-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mBackBtn:Landroid/widget/ImageButton;

    .line 123
    const v2, 0x7f0a0093

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Lcom/zuimeia/ui/tag/enhance/TagRecyclerView;

    iput-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mTagRecyclerView:Lcom/zuimeia/ui/tag/enhance/TagRecyclerView;

    .line 125
    const v2, 0x7f0a0092

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ExpandableListView;

    iput-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mExpandableAppListView:Landroid/widget/ExpandableListView;

    .line 126
    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mExpandableAppListView:Landroid/widget/ExpandableListView;

    invoke-virtual {v2, v4}, Landroid/widget/ExpandableListView;->setDivider(Landroid/graphics/drawable/Drawable;)V

    .line 127
    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mExpandableAppListView:Landroid/widget/ExpandableListView;

    invoke-virtual {v2, v4}, Landroid/widget/ExpandableListView;->setGroupIndicator(Landroid/graphics/drawable/Drawable;)V

    .line 128
    invoke-static {}, Lcom/zuiapps/suite/utils/device/DeviceUtil;->isMeizu()Z

    move-result v2

    if-nez v2, :cond_65

    .line 129
    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mExpandableAppListView:Landroid/widget/ExpandableListView;

    const/4 v3, 0x2

    invoke-virtual {v2, v3}, Landroid/widget/ExpandableListView;->setOverScrollMode(I)V

    .line 132
    :cond_65
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->getLayoutInflater()Landroid/view/LayoutInflater;

    move-result-object v2

    const v3, 0x7f030088

    invoke-virtual {v2, v3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 133
    .local v0, "footerView":Landroid/view/View;
    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mExpandableAppListView:Landroid/widget/ExpandableListView;

    invoke-virtual {v2, v0}, Landroid/widget/ExpandableListView;->addFooterView(Landroid/view/View;)V

    .line 135
    new-instance v2, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;

    new-instance v3, Ljava/util/LinkedHashMap;

    invoke-direct {v3}, Ljava/util/LinkedHashMap;-><init>()V

    invoke-direct {v2, p0, v3}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;-><init>(Lcom/brixd/niceapp/activity/NiceAppSearchActivity;Ljava/util/LinkedHashMap;)V

    iput-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mAdapter:Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;

    .line 136
    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mExpandableAppListView:Landroid/widget/ExpandableListView;

    iget-object v3, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mAdapter:Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;

    invoke-virtual {v2, v3}, Landroid/widget/ExpandableListView;->setAdapter(Landroid/widget/ExpandableListAdapter;)V

    .line 138
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getCachedTagsForSearch()Ljava/util/List;

    move-result-object v1

    .line 139
    .local v1, "tags":Ljava/util/List;, "Ljava/util/List<Lcom/brixd/niceapp/model/TagModel;>;"
    invoke-direct {p0, v1}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->initTagView(Ljava/util/List;)V

    .line 140
    return-void
.end method

.method private requestTags()V
    .registers 5

    .prologue
    .line 225
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->getActivity()Landroid/app/Activity;

    move-result-object v1

    invoke-static {v1}, Lcom/brixd/niceapp/service/adapter/ReqRestAdapter;->niceAppAdapter(Landroid/content/Context;)Lretrofit/RestAdapter;

    move-result-object v1

    const-class v2, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    invoke-virtual {v1, v2}, Lretrofit/RestAdapter;->create(Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    .line 226
    .local v0, "request":Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;
    const-string v1, "zuimei.tag.home"

    const/4 v2, 0x2

    new-instance v3, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$7;

    invoke-direct {v3, p0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$7;-><init>(Lcom/brixd/niceapp/activity/NiceAppSearchActivity;)V

    invoke-interface {v0, v1, v2, v3}, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;->queryTags(Ljava/lang/String;ILretrofit/Callback;)V

    .line 243
    return-void
.end method

.method private searchApps()V
    .registers 5

    .prologue
    .line 246
    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mSearchEdt:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    .line 247
    .local v0, "keyword":Ljava/lang/String;
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_15

    .line 279
    :goto_14
    return-void

    .line 251
    :cond_15
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-static {v2}, Lcom/brixd/niceapp/util/KeyboardController;->hideKeyboard(Landroid/content/Context;)V

    .line 252
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->showProgress()V

    .line 253
    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mTagRecyclerView:Lcom/zuimeia/ui/tag/enhance/TagRecyclerView;

    const/16 v3, 0x8

    invoke-virtual {v2, v3}, Lcom/zuimeia/ui/tag/enhance/TagRecyclerView;->setVisibility(I)V

    .line 255
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-static {v2}, Lcom/brixd/niceapp/service/adapter/ReqRestAdapter;->niceAppAdapter(Landroid/content/Context;)Lretrofit/RestAdapter;

    move-result-object v2

    const-class v3, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    invoke-virtual {v2, v3}, Lretrofit/RestAdapter;->create(Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    .line 256
    .local v1, "request":Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;
    const/4 v2, 0x2

    new-instance v3, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$8;

    invoke-direct {v3, p0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$8;-><init>(Lcom/brixd/niceapp/activity/NiceAppSearchActivity;)V

    invoke-interface {v1, v0, v2, v3}, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;->searchApps(Ljava/lang/String;ILretrofit/Callback;)V

    goto :goto_14
.end method

.method private showProgress()V
    .registers 6

    .prologue
    .line 282
    iget-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mProgressHUD:Lcom/zuiapps/suite/utils/hud/ProgressHUD;

    if-nez v0, :cond_1c

    .line 283
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->getActivity()Landroid/app/Activity;

    move-result-object v0

    const-string v1, ""

    const v2, 0x7f040003

    const/4 v3, 0x1

    const/4 v4, 0x0

    invoke-static {v0, v1, v2, v3, v4}, Lcom/zuiapps/suite/utils/hud/ProgressHUD;->show(Landroid/content/Context;Ljava/lang/CharSequence;IZLandroid/content/DialogInterface$OnCancelListener;)Lcom/zuiapps/suite/utils/hud/ProgressHUD;

    move-result-object v0

    iput-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mProgressHUD:Lcom/zuiapps/suite/utils/hud/ProgressHUD;

    .line 284
    iget-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mProgressHUD:Lcom/zuiapps/suite/utils/hud/ProgressHUD;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/zuiapps/suite/utils/hud/ProgressHUD;->setCanceledOnTouchOutside(Z)V

    .line 288
    :goto_1b
    return-void

    .line 286
    :cond_1c
    iget-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mProgressHUD:Lcom/zuiapps/suite/utils/hud/ProgressHUD;

    invoke-virtual {v0}, Lcom/zuiapps/suite/utils/hud/ProgressHUD;->show()V

    goto :goto_1b
.end method


# virtual methods
.method public finish()V
    .registers 3

    .prologue
    .line 302
    invoke-super {p0}, Lcom/brixd/niceapp/activity/AbsBaseSwipeBackActivity;->finish()V

    .line 303
    const/4 v0, 0x0

    const v1, 0x7f040015

    invoke-virtual {p0, v0, v1}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->overridePendingTransition(II)V

    .line 304
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .registers 3
    .param p1, "bundle"    # Landroid/os/Bundle;

    .prologue
    .line 78
    invoke-super {p0, p1}, Lcom/brixd/niceapp/activity/AbsBaseSwipeBackActivity;->onCreate(Landroid/os/Bundle;)V

    .line 79
    const v0, 0x7f030019

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->setContentView(I)V

    .line 81
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->initData()V

    .line 82
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->initWidgets()V

    .line 83
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->initWidgetActions()V

    .line 85
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->requestTags()V

    .line 86
    return-void
.end method

.method protected onPause()V
    .registers 2

    .prologue
    .line 97
    invoke-super {p0}, Lcom/brixd/niceapp/activity/AbsBaseSwipeBackActivity;->onPause()V

    .line 98
    const-string v0, "NiceAppSearchActivity"

    invoke-static {v0}, Lcom/umeng/analytics/MobclickAgent;->onPageEnd(Ljava/lang/String;)V

    .line 99
    invoke-static {p0}, Lcom/umeng/analytics/MobclickAgent;->onPause(Landroid/content/Context;)V

    .line 100
    return-void
.end method

.method protected onResume()V
    .registers 2

    .prologue
    .line 90
    invoke-super {p0}, Lcom/brixd/niceapp/activity/AbsBaseSwipeBackActivity;->onResume()V

    .line 91
    const-string v0, "NiceAppSearchActivity"

    invoke-static {v0}, Lcom/umeng/analytics/MobclickAgent;->onPageStart(Ljava/lang/String;)V

    .line 92
    invoke-static {p0}, Lcom/umeng/analytics/MobclickAgent;->onResume(Landroid/content/Context;)V

    .line 93
    return-void
.end method
